package com.mini.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mini.config.EncryptField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @author: zhaocg
 * @created: 2021/01/20 13:54
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessOperationRecord {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @EncryptField
    private String phoneNo;

    private Long lessonSiteId;

    @ApiModelProperty(value = "0 不重要 1重要")
    private Integer importantState;

    @ApiModelProperty(value = "0系统  1人工")
    private Integer operationSource;

    @ApiModelProperty(value = "内容")
    private String operationRecord;

    private Long operationUserId;

    @ApiModelProperty(value = "账号")
    private String operationLoginName;

    @ApiModelProperty(value = "操作人")
    private String operationUserName;

    @ApiModelProperty(value = "角色描述")
    private String roleName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date operationTime;

    @ApiModelProperty(value = "操作类型 1-需求规划，2-业务组，15-最大接待量")
    private Integer operationType;

}
